package com.woniuxy.car.commodity.service.core.service;

import com.woniuxy.car.commodity.service.core.dto.CommodityDto;
import com.woniuxy.car.commodity.service.core.entity.Commodity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author awz
 * @since 2022-03-01
 */
public interface ICommodityService extends IService<Commodity> {

    List<Commodity> showCommodities(CommodityDto commodityClassDto);

    void addCommodity(CommodityDto commodityDto);

    void deleteCommodity(int id);

    Commodity findCommodityById(int id);

    void groundingOrDown(int id, int i);

    //根据ids查询商品
    List<Commodity> findCommoditiesByIds(List<Integer> ids);

}
